<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateInformationTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('information', function (Blueprint $table) {
            $table->id();
            $table->unsignedBigInteger('team_id')->default(0);
            $table->string('nickname')->nullable();
            $table->string('height')->nullable();
            $table->string('weight')->nullable();
            $table->string('cup')->nullable();
            $table->decimal('price',10,0)->nullable();
            $table->tinyInteger('status')->default(1);
            $table->tinyInteger('scheduling')->default(0);
            $table->tinyInteger('is_secretly')->default(0);
            $table->tinyInteger('is_specific_service')->default(0);

            $table->json('gift_specific_service')->nullable();
            $table->string('custom_service')->nullable();
            $table->json('gift_not_specific_service')->nullable();
            $table->string('custom_service2')->nullable();
            $table->json('prohibited_guests')->nullable();

            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('information');
    }
}
